.class Lcom/example/m6wmr/LoginActivity$22;
.super Ljava/lang/Thread;
.source "LoginActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6wmr/LoginActivity;->sendphone()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/LoginActivity;


# direct methods
.method constructor <init>(Lcom/example/m6wmr/LoginActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/LoginActivity$22;->this$0:Lcom/example/m6wmr/LoginActivity;

    .line 1050
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 15

    .prologue
    const-wide/high16 v13, 0x4024000000000000L    # 10.0

    .line 1052
    invoke-super {p0}, Ljava/lang/Thread;->run()V

    .line 1053
    iget-object v8, p0, Lcom/example/m6wmr/LoginActivity$22;->this$0:Lcom/example/m6wmr/LoginActivity;

    iget-object v8, v8, Lcom/example/m6wmr/LoginActivity;->registerview:Landroid/view/View;

    const v9, 0x7f0c02d1

    invoke-virtual {v8, v9}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/EditText;

    .line 1054
    .local v4, "reg_phone":Landroid/widget/EditText;
    invoke-virtual {v4}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v8

    invoke-interface {v8}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v8

    .line 1055
    const-string v9, "%"

    const-string v10, ""

    invoke-virtual {v8, v9, v10}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    const-string v9, " "

    const-string v10, ""

    invoke-virtual {v8, v9, v10}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v3

    .line 1057
    .local v3, "phone":Ljava/lang/String;
    iget-object v8, p0, Lcom/example/m6wmr/LoginActivity$22;->this$0:Lcom/example/m6wmr/LoginActivity;

    invoke-static {}, Ljava/lang/Math;->random()D

    move-result-wide v9

    mul-double/2addr v9, v13

    double-to-int v9, v9

    invoke-static {v9}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v9

    invoke-static {v8, v9}, Lcom/example/m6wmr/LoginActivity;->access$32(Lcom/example/m6wmr/LoginActivity;Ljava/lang/String;)V

    .line 1058
    iget-object v8, p0, Lcom/example/m6wmr/LoginActivity$22;->this$0:Lcom/example/m6wmr/LoginActivity;

    # getter for: Lcom/example/m6wmr/LoginActivity;->codeString:Ljava/lang/String;
    invoke-static {v8}, Lcom/example/m6wmr/LoginActivity;->access$33(Lcom/example/m6wmr/LoginActivity;)Ljava/lang/String;

    move-result-object v9

    new-instance v10, Ljava/lang/StringBuilder;

    invoke-static {v9}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v9

    invoke-direct {v10, v9}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-static {}, Ljava/lang/Math;->random()D

    move-result-wide v11

    mul-double/2addr v11, v13

    double-to-int v9, v11

    invoke-static {v9}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v10, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-static {v8, v9}, Lcom/example/m6wmr/LoginActivity;->access$32(Lcom/example/m6wmr/LoginActivity;Ljava/lang/String;)V

    .line 1059
    iget-object v8, p0, Lcom/example/m6wmr/LoginActivity$22;->this$0:Lcom/example/m6wmr/LoginActivity;

    # getter for: Lcom/example/m6wmr/LoginActivity;->codeString:Ljava/lang/String;
    invoke-static {v8}, Lcom/example/m6wmr/LoginActivity;->access$33(Lcom/example/m6wmr/LoginActivity;)Ljava/lang/String;

    move-result-object v9

    new-instance v10, Ljava/lang/StringBuilder;

    invoke-static {v9}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v9

    invoke-direct {v10, v9}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-static {}, Ljava/lang/Math;->random()D

    move-result-wide v11

    mul-double/2addr v11, v13

    double-to-int v9, v11

    invoke-static {v9}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v10, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-static {v8, v9}, Lcom/example/m6wmr/LoginActivity;->access$32(Lcom/example/m6wmr/LoginActivity;Ljava/lang/String;)V

    .line 1060
    iget-object v8, p0, Lcom/example/m6wmr/LoginActivity$22;->this$0:Lcom/example/m6wmr/LoginActivity;

    # getter for: Lcom/example/m6wmr/LoginActivity;->codeString:Ljava/lang/String;
    invoke-static {v8}, Lcom/example/m6wmr/LoginActivity;->access$33(Lcom/example/m6wmr/LoginActivity;)Ljava/lang/String;

    move-result-object v9

    new-instance v10, Ljava/lang/StringBuilder;

    invoke-static {v9}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v9

    invoke-direct {v10, v9}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-static {}, Ljava/lang/Math;->random()D

    move-result-wide v11

    mul-double/2addr v11, v13

    double-to-int v9, v11

    invoke-static {v9}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v10, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-static {v8, v9}, Lcom/example/m6wmr/LoginActivity;->access$32(Lcom/example/m6wmr/LoginActivity;Ljava/lang/String;)V

    .line 1062
    new-instance v8, Ljava/lang/StringBuilder;

    iget-object v9, p0, Lcom/example/m6wmr/LoginActivity$22;->this$0:Lcom/example/m6wmr/LoginActivity;

    # getter for: Lcom/example/m6wmr/LoginActivity;->codeString:Ljava/lang/String;
    invoke-static {v9}, Lcom/example/m6wmr/LoginActivity;->access$33(Lcom/example/m6wmr/LoginActivity;)Ljava/lang/String;

    move-result-object v9

    invoke-static {v9}, Lcom/example/m6wmr/LoginActivity;->stringToMD5(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    invoke-static {v9}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v9

    invoke-direct {v8, v9}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v9, p0, Lcom/example/m6wmr/LoginActivity$22;->this$0:Lcom/example/m6wmr/LoginActivity;

    # getter for: Lcom/example/m6wmr/LoginActivity;->codeString:Ljava/lang/String;
    invoke-static {v9}, Lcom/example/m6wmr/LoginActivity;->access$33(Lcom/example/m6wmr/LoginActivity;)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    .line 1067
    .local v5, "sign":Ljava/lang/String;
    new-instance v8, Ljava/lang/StringBuilder;

    iget-object v9, p0, Lcom/example/m6wmr/LoginActivity$22;->this$0:Lcom/example/m6wmr/LoginActivity;

    iget-object v9, v9, Lcom/example/m6wmr/LoginActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v9}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v9

    invoke-static {v9}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v9

    invoke-direct {v8, v9}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v9, "/index.php?ctrl=app&action=sendregphone&datatype=json&type=0&phone="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    .line 1068
    .local v7, "url":Ljava/lang/String;
    const-string v8, "Loginactivity"

    new-instance v9, Ljava/lang/StringBuilder;

    const-string v10, "sendphone() "

    invoke-direct {v9, v10}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v9, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-static {v8, v9}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 1070
    const-string v8, "oooooooooooooooofffffffffffoooooooooooooooooo"

    invoke-static {v8, v7}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 1072
    iget-object v8, p0, Lcom/example/m6wmr/LoginActivity$22;->this$0:Lcom/example/m6wmr/LoginActivity;

    iget-object v8, v8, Lcom/example/m6wmr/LoginActivity;->m:Lmyapp/MyApp;

    invoke-static {v7, v8}, LPlugclass/HttpConn;->getStr(Ljava/lang/String;Lmyapp/MyApp;)Ljava/lang/String;

    move-result-object v6

    .line 1073
    .local v6, "str":Ljava/lang/String;
    new-instance v2, Landroid/os/Message;

    invoke-direct {v2}, Landroid/os/Message;-><init>()V

    .line 1076
    .local v2, "msg":Landroid/os/Message;
    :try_start_0
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1, v6}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 1077
    .local v1, "json":Lorg/json/JSONObject;
    const-string v8, "error"

    invoke-virtual {v1, v8}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    const-string v9, "true"

    invoke-virtual {v8, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v8

    if-eqz v8, :cond_0

    .line 1080
    const-string v8, "msg"

    invoke-virtual {v1, v8}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    iput-object v8, v2, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 1081
    const/16 v8, 0xb

    iput v8, v2, Landroid/os/Message;->arg1:I

    .line 1082
    iget-object v8, p0, Lcom/example/m6wmr/LoginActivity$22;->this$0:Lcom/example/m6wmr/LoginActivity;

    # getter for: Lcom/example/m6wmr/LoginActivity;->h:Landroid/os/Handler;
    invoke-static {v8}, Lcom/example/m6wmr/LoginActivity;->access$31(Lcom/example/m6wmr/LoginActivity;)Landroid/os/Handler;

    move-result-object v8

    invoke-virtual {v8, v2}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 1098
    .end local v1    # "json":Lorg/json/JSONObject;
    :goto_0
    return-void

    .line 1086
    .restart local v1    # "json":Lorg/json/JSONObject;
    :cond_0
    iget-object v8, p0, Lcom/example/m6wmr/LoginActivity$22;->this$0:Lcom/example/m6wmr/LoginActivity;

    invoke-static {v8, v6}, Lcom/example/m6wmr/LoginActivity;->access$34(Lcom/example/m6wmr/LoginActivity;Ljava/lang/String;)V

    .line 1087
    const/16 v8, 0xe

    iput v8, v2, Landroid/os/Message;->arg1:I

    .line 1089
    iget-object v8, p0, Lcom/example/m6wmr/LoginActivity$22;->this$0:Lcom/example/m6wmr/LoginActivity;

    # getter for: Lcom/example/m6wmr/LoginActivity;->h:Landroid/os/Handler;
    invoke-static {v8}, Lcom/example/m6wmr/LoginActivity;->access$31(Lcom/example/m6wmr/LoginActivity;)Landroid/os/Handler;

    move-result-object v8

    invoke-virtual {v8, v2}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 1090
    .end local v1    # "json":Lorg/json/JSONObject;
    :catch_0
    move-exception v0

    .line 1092
    .local v0, "e":Lorg/json/JSONException;
    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    .line 1093
    const/16 v8, 0xc

    iput v8, v2, Landroid/os/Message;->arg1:I

    .line 1095
    iget-object v8, p0, Lcom/example/m6wmr/LoginActivity$22;->this$0:Lcom/example/m6wmr/LoginActivity;

    # getter for: Lcom/example/m6wmr/LoginActivity;->h:Landroid/os/Handler;
    invoke-static {v8}, Lcom/example/m6wmr/LoginActivity;->access$31(Lcom/example/m6wmr/LoginActivity;)Landroid/os/Handler;

    move-result-object v8

    invoke-virtual {v8, v2}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_0
.end method

.method public declared-synchronized start()V
    .locals 1

    .prologue
    .line 1103
    monitor-enter p0

    :try_start_0
    invoke-super {p0}, Ljava/lang/Thread;->start()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 1104
    monitor-exit p0

    return-void

    .line 1103
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
